<template>
  <div
    class="exit-layer exit-layerShow"
  >
    <div class="auth-layer-con">
      <p class="auth-layer-title">
        温馨提示
      </p>
      <p class="auth-layer-p">
        暂无可用店铺
      </p>
      <p class="layer-btn">
        <navigator
          class="btn-auth"
          open-type="exit"
          target="miniProgram"
        >
          关闭小程序
        </navigator>
      </p>
    </div>
  </div>
</template>

<script setup lang='ts'>
uni.hideTabBar();
</script>

<style lang="scss" scoped>
.exit-layer {
    position: fixed;
    z-index: 999;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    .auth-layer-con {
        width: 297px;
        height: 200px;
        margin: 0 auto;
        margin-top: 150px;
        background: #ffffff;
        text-align: center;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        img {
            width: 190px;
            height: 120px;
            margin: 0 auto;
            padding-top: 15px;
        }
        .close{
            width: 20px;
            height: 20px;
            position: absolute;
            z-index: 99;
            top: 80px;
            right: 30px;
        }
        .auth-layer-title {
            font-size: 18px;
            font-weight: 600;
            color: $uni-text-color;
            padding-top: 20px;
            padding-bottom: 15px;
        }
        .auth-layer-p {
            font-size: 18px;
            font-weight: 300;
            color: rgba(102, 102, 102, 1);
            line-height: 25px;
            margin-top: 20px;
        }
        .layer-btn {
            .btn-auth {
                margin-top: 40px;
                width: 268px;
                height: 44px;
                background: $uni-color-primary;
                border-radius: 25px;
                font-size: 18px;
                font-weight: 400;
                color: rgba(255, 255, 255, 1);
                line-height: 44px;
            }
        }
    }
}
.exit-layerShow{
    display: block;
}
</style>
